﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <title>天然气收费管理系统</title>
  <link href="images/skin.css" rel="stylesheet" type="text/css" />
  <script language="JavaScript">
    function correctPNG() {
      var arVersion = navigator.appVersion.split("MSIE")
      var version = parseFloat(arVersion[1])
      if ((version >= 5.5) && (document.body.filters)) {
        for (var j = 0; j < document.images.length; j++) {
          var img = document.images[j]
          var imgName = img.src.toUpperCase()
          if (imgName.substring(imgName.length - 3, imgName.length) == "PNG") {
            var imgID = (img.id) ? "id='" + img.id + "' " : ""
            var imgClass = (img.className) ? "class='" + img.className + "' " : ""
            var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
            var imgStyle = "display:inline-block;" + img.style.cssText
            if (img.align == "left") imgStyle = "float:left;" + imgStyle
            if (img.align == "right") imgStyle = "float:right;" + imgStyle
            if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
            var strNewHTML = "<span " + imgID + imgClass + imgTitle
             + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
             + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
             + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
            img.outerHTML = strNewHTML
            j = j - 1
          }
        }
      }
    }
//    window.attachEvent("onload", correctPNG);
  </script>
</head>
<body>
  <form id="form1" runat="server">
  <table width="1002" height="636" border="0" align="center" cellpadding="0" cellspacing="0"
    class="login_bg">
    <tr>
      <td height="670" valign="middle">
        <table width="46%" height="213" border="0" align="center" cellpadding="0" cellspacing="0"
          id="table212">
          <tr>
            <td height="70" align="right" class="top_hui_text">
              &nbsp;
            </td>
            <td height="70" colspan="2" align="left">
              &nbsp;
            </td>
          </tr>
          <tr>
            <td width="38%" align="right" height="30" class="top_hui_text">
              &nbsp;
            </td>
            <td colspan="2" align="left">
              <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                ControlToValidate="txtUserName"></asp:RequiredFieldValidator>
            </td>
          </tr>
          <tr>
            <td width="38%" height="28" align="right" class="top_hui_text">
              &nbsp;
            </td>
            <td height="28" colspan="2" align="left">
              <asp:TextBox ID="txtPWD" runat="server" TextMode="Password"></asp:TextBox>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
                ControlToValidate="txtPWD"></asp:RequiredFieldValidator>
              <img src="images/luck.gif" width="19" height="18" />
            </td>
          </tr>
          <tr>
            <td height="35">
              &nbsp;
            </td>
            <td width="62%" height="35" align="left">
              <%--<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Default.aspx">HyperLink</asp:HyperLink>--%>
              <table>
                <tr>
                  <td>
                    <asp:Button ID="btnDL" runat="server" Text="登录" OnClick="btnDL_Click" />
                    <%-- <dxe:ASPxButton ID="btnDL" runat="server" Text="登录" AutoPostBack="False">
                    </dxe:ASPxButton>--%>
                  </td>
                  <td>
                    <input id="Reset1" type="reset" value="重置" />
                    <%--  <dxe:ASPxButton ID="ASPxButton1" runat="server" Text="重置" AutoPostBack="False">
                      <ClientSideEvents Click="function(s, e) {
	document.getElementById('txtPWD').value='';
	document.getElementById('txtUserName').value='';
}" />
                    </dxe:ASPxButton>--%>
                  </td>
                  <td>
                    <asp:Label ID="lbMessage" runat="server" Text=""></asp:Label>
                  </td>
                </tr>
              </table>
              <%--<input name="Submit" type="submit" class="button" id="Submit" value="登 录">--%>
            </td>
            <%-- <td width="67%" class="top_hui_text">
                                                                <input name="cs" type="button" class="button" id="cs" value="取 消" onclick="showConfirmMsg1()">
                                                            </td>--%>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  </form>
</body>
</html>
